package cc.laop.utils;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;

public class ShiroSessionUtils {

    public static Session getSession() {
        return SecurityUtils.getSubject().getSession();
    }

    public static Object getAttribute(String key) {
        return getSession().getAttribute(key);
    }

}
